'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/getCode', controller.home.getCode);
  router.get("/api/getUserInfo",controller.home.getUserInfo)

  // router.post("/api/upload",controller.home.uploadController)

  router.post("/api/ossupload",controller.home.ossupload)

  // 邮箱
  router.post("/api/email",controller.home.getPwd)
};
